/************************************************
  * 描述: 序列化、反序列化Json数据测试
  * File: serializationjsontest.h
  * Author: qijiangyong@mozihealthcare.cn
  * Date: 2025-09-01
  * Update:
  ***********************************************/

#ifndef SERIALIZATIONJSONTEST_H
#define SERIALIZATIONJSONTEST_H

#include <QtTest>
#include "serializedata.h"

class SerializationJsonTest final : public QObject
{
	Q_OBJECT

public:
	explicit SerializationJsonTest(QObject* parent = nullptr);
	~SerializationJsonTest();

private slots:
	void initTestCase();

	/**
	 * 序列化测试
	 */
	void tstSerialize();
	/**
	 * 反序列化测试
	 */
	void tstDeserialize();

	void cleanupTestCase();

private:
	StQtData m_data;
	std::string m_jsonstr, m_jsonstr2, m_jsonstr3;
};

#endif //SERIALIZATIONJSONTEST_H
